-- GENERATED SPELL FOR [Nexus Guardian] --


function spell0_26276(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(47425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26276', 10500, 1)
end

function spell1_26276(pUnit, Event) --@Frost Cleave,n/a--
pUnit:FullCastSpellOnTarget(51857,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26276', 8345, 1)
end

function Sorts_26276(pUnit, Event)
local choix_sorts_26276 = math.random(0, 1)
if choix_sorts_26276 == 0 then
pUnit:RegisterEvent('spell0_26276', 1, 1)
end
if choix_sorts_26276 == 1 then
pUnit:RegisterEvent('spell1_26276', 1, 1)
end
end

function mob26276_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26276', math.random(1500, 3000), 1)
end

function mob26276_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26276_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26276_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26276, 1, 'mob26276_Action')
RegisterUnitEvent(26276, 2, 'mob26276_Leave')
RegisterUnitEvent(26276, 3, 'mob26276_Kill')
RegisterUnitEvent(26276, 4, 'mob26276_Die')
